package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func main() {
	r := gin.Default()
	r.GET("/", ResultData)
	r.Run()
}
func ResultData(c *gin.Context) {
	var data = make(map[string]interface{})
	data["name"] = "小王子"
	data["message"] = "heelo world"
	data["age"] = 18

	c.JSON(http.StatusOK, data)
}
